package com.ccx.coachsite.ui.softmgr;

import com.ccx.coachsite.downloadmgr.DownloadItem;
import com.ccx.coachsite.util.SUtil;


public class SoftInfo extends DownloadItem {
	private static final long serialVersionUID = 6744839838793267909L;

	private int useTime; //使用次数
	
	private String localVersion;//本地版本号，即已安装的该应用的当前版本号
	private String size; //字符串格式，如"20M"
	private boolean isSystemApp;//是否是系统应用
	private boolean checked; //是否被选中，为复选框服务
	private long introLength;//软件介绍的总字数，目的是为了字数太多时只下一部份,待点开所有再进行查看全部
	private boolean isCollection;//是否收藏  0表示未收藏
	private String flag;//应用所属(1为应用汇2天翼空间)
	
	public String getFlag() {
		return flag;
	}
	public void setFlag(String flag) {
		if (flag==null)
			flag = "";
		this.flag = flag;
	}
	
	public boolean isCollection() {
		return isCollection;
	}
	public void setCollection(boolean isCollection) {
		this.isCollection = isCollection;
	}
	public int getUseTime() {
		return useTime;
	}
	public void setUseTime(int useTime) {
		this.useTime = useTime;
	}
	
	public String getLocalVersion() {
		return localVersion;
	}
	public void setLocalVersion(String localVersion) {
		this.localVersion = localVersion;
	}
	public String getSize() {
		if(size==null)
			size=SUtil.getComputerSize(fileBytes, 2);
		return size;
	}
	public void setSize(String size) {
		this.size = size;
	}
	public boolean isSystemApp() {
		return isSystemApp;
	}
	public void setSystemApp(boolean isSystemApp) {
		this.isSystemApp = isSystemApp;
	}
	public boolean isChecked() {
		return checked;
	}
	public void setChecked(boolean checked) {
		this.checked = checked;
	}
	public long getIntroLength() {
		return introLength;
	}
	public void setIntroLength(long introLength) {
		this.introLength = introLength;
	}
	
	
}
